@extends('goods.base.index')

    

@section('content')
<!-- Content>
<!-- Messages Drawer -->
	 <div class="block-area" id="text-input">
                <h3 class="block-title">商品添加</h3>
                <form action='{{ url("admin/goods") }}' method='post' enctype='multipart/form-data'>
                    <input type='hidden' name='_token' value='{{ csrf_token() }}'>
                    <div class="row">
                        <div class="col-lg-8">
                            <input name='sname' type="text" class="form-control m-b-10" placeholder="商品名称">
                        </div>
                        <div class="col-lg-8">
                             <select class="form-control input-sm m-b-10" name='type'>
                                <option>---商品类别---</option>
                                <option value='1'>手机</option>
                                <option value='2'>电脑</option>
                            </select>
                        </div>
                        <div class="col-lg-8">
                            <input name='price' type="text" class="form-control m-b-10" placeholder="商品价格">
                        </div>
                        <div class="col-lg-8">
                            <input name='pic' type="file" class="form-control m-b-10" placeholder="展示图" >
                            <input type="hidden" name='_token' value="{{ csrf_token() }}">
                        </div>
						<div class="col-lg-8">
                            <input name='bigpic' type="file" class="form-control m-b-10" id="exampleInputFile" placeholder="大图" value="datu">
                        </div> 
                        <div class="col-lg-8">
                            <input name='stock' type="text" class="form-control m-b-10" placeholder="库存">
                        </div>
                        <div class="col-lg-8">
                            <select class="form-control input-sm m-b-10" name='hotid'>
                                <option>---推荐---</option>
                                <option value='0'>推荐</option>
                                <option value='1'>不推荐</option>
                            </select>
                        </div>
                        <div class="col-lg-8">
                            <input name='body' type="text" class="form-control m-b-10" placeholder="商品介绍">
                        </div>
                        <div class="col-lg-8">
                            <select class="form-control input-sm m-b-10" name='under'>
                                <option>---商品状态---</option>
                                <option value='0'>下架</option>
                                <option value='1'>上架</option>
                            </select>
                        </div>
                        <div class="col-lg-8">
                           <select class="form-control input-sm m-b-10" name='bin'>
                                <option>---回收站---</option>
                                <option value='0'>正常</option>
                                <option value='1'>删除</option>
                            </select>
                        </div>
                        <div class="col-lg-8">
                            <input name='Hlevel' type="text" class="form-control m-b-10" placeholder="热度">
                        </div>
                        <div class="col-lg-8">
                            <input name='discount' type="text" class="form-control m-b-10" placeholder="折扣">
                        </div>
                       
                        <div class='row'>
                            <div class="col-lg-12">
                                <input type='submit' class='btn' value='添加'>
                            </div>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                </form>
                <!-- 显示验证规则失败时的信息 -->
              <!--   @if (count($errors) > 0)
                    <div class="alert alert-danger">
                        <ul>
                            @foreach ($errors->all() as $error)
                                <li>{{ $error }}</li>
                            @endforeach
                        </ul>
                    </div>
                @endif -->
    </div>
@stop